package org.spring.sample.controller;

import javax.validation.Valid;

import org.spring.sample.dto.AdvertiserParam;
import org.spring.sample.dto.ResponseDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class IndexController {

	@RequestMapping(value = "/index")
	public String index() {
		return "index";
	}

	@RequestMapping(value = "/advertiser", method = RequestMethod.POST)
	@ResponseBody
	public ResponseDTO creatAdvertiser(@RequestBody @Valid AdvertiserParam advertiserParam) {
		return null;
	}
}
